﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="projecthistory.aspx.cs" Inherits="Business_projecthistory" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>历史计划列表</title>
    <link rel="stylesheet" type="text/css" href="../js/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../js/themes/icon.css"/>
	<link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
   	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>   
	<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script> 
	
</head>
<body>
    <form id="form1" runat="server">
   <div style="background:#efefef;width:100%;">
	   <a href="projectschedual.aspx" target="mainwin" class="easyui-linkbutton" plain="true">项目计划</a>&nbsp;&nbsp;|
       <a href="#" target="mainwin" class="easyui-linkbutton" plain="true">历史项目</a>&nbsp;&nbsp;|
       <a href="projectpaused.aspx" target="mainwin" class="easyui-linkbutton" plain="true">计划中断</a>
       <a href="../Web/viewinfo.aspx" target="mainwin" style="float:right; margin:0px; padding:0px;"><img alt="返回" title="返回上级" src="../Images/GetBack.png" style="border:0; margin:0; padding:0;" /></a> 
	</div>
	   <div>  <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
           <div style="background-color:#fedcbd; padding-bottom:5px;">
        <table>
        <tr><td colspan='9'>
            搜索条件：（若您填写了编号，则直接按照编号搜索，其他条件无效！）</td></tr>
        <tr>
                <td>计划编号：</td>
                <td>
                    <asp:TextBox ID="txtPlanCode" runat="server" Width="100px"></asp:TextBox></td>
                <td>项目类别：</td>
                <td>
                    <asp:DropDownList ID="ddlType" runat="server" Width="110px">
                    </asp:DropDownList></td>
                   <td>项目级别:
                </td>
                <td>
                    <asp:DropDownList ID="ddlLevel" runat="server" Width="80px">
                        <asp:ListItem Value="无限制">无限制</asp:ListItem>
                        <asp:ListItem Value="校级">校级</asp:ListItem>
                        <asp:ListItem Value="省级">省级</asp:ListItem>
                        <asp:ListItem Value="国家级">国家级</asp:ListItem>
                    </asp:DropDownList></td>
                <td>项目类型：</td>
                <td>
                    <asp:DropDownList ID="ddlPType" runat="server" Width="80px">
                        <asp:ListItem>无限制</asp:ListItem>
                        <asp:ListItem>一般</asp:ListItem>
                        <asp:ListItem>重点</asp:ListItem>
                    </asp:DropDownList></td>
            <td rowspan="2">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                          <ContentTemplate>
                       <asp:ImageButton ID="btnSearch" runat="server" EnableViewState="False" ImageUrl="~/Images/search.png" ToolTip="点击搜索！" OnClick="btnSearch_Click" />
                          </ContentTemplate>
                      </asp:UpdatePanel>
            </td>
            </tr>
        <tr><td>建设时间：</td>
        <td><input id="txtTime1" type="text" readonly="readOnly" style="width:100px" class="easyui-datebox" runat="server" />
        </td>
        <td style="text-align:center";>到</td>
        <td><input id="txtTime2" type="text" readonly="readOnly" style="width:100px" class="easyui-datebox" runat="server" /></td>
                <td>状态：</td>
                <td>
                    <asp:DropDownList ID="ddlStatus" runat="server" Width="80px">
                        <asp:ListItem Selected="True" Value="1">全部</asp:ListItem>
                        <asp:ListItem Value="2">已过期</asp:ListItem>
                        <asp:ListItem Value="3">正在执行</asp:ListItem>
                        <asp:ListItem Value="4">未执行</asp:ListItem>
                    </asp:DropDownList></td>
                  <td> &nbsp;项目状态:</td>
                  <td>
                      <asp:DropDownList ID="ddlStatus1" runat="server" Width="80px">
                          <asp:ListItem>所有</asp:ListItem>
                          <asp:ListItem>已完成</asp:ListItem>
                          <asp:ListItem>未完成</asp:ListItem>
                      </asp:DropDownList></td></tr>
        </table>
    </div> 
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
           <div>
          <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" FirstPageText="首页"
                        HorizontalAlign="Right" LastPageText="末页" NextPageText="下一页" 
                        PageIndexBoxType="TextBox" PageSize="15" PrevPageText="上一页" ShowCustomInfoSection="Left"
                        ShowPageIndexBox="Always" Width="100%" CustomInfoHTML="共<font color=blue><b>%RecordCount%</b></font>条数据 每页：<font color=blue><b>%PageSize%</b></font> 条 共<font color=blue><b>%PageCount%</b></font>页 当前页：<font color=red><b>%CurrentPageIndex%/%PageCount%</b></font>" OnPageChanged="AspNetPager1_PageChanged" CustomInfoSectionWidth="50%" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" CustomInfoTextAlign="Left">
                    </webdiyer:AspNetPager></div> 
                   <div>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gvStyle" AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="pgr" EmptyDataText="暂时无任何数据！" Width="100%" DataKeyNames="id" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating">
                    <Columns>
                        <asp:TemplateField HeaderText="序号">   <ItemTemplate> 
                                 <%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%>
                            </ItemTemplate> 
                            <ItemStyle Width="40px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="plancode" HeaderText="编号" ReadOnly="True" />
                        <asp:BoundField DataField="btnname" HeaderText="项目类别" ReadOnly="True" />
                        <asp:BoundField DataField="plevel" HeaderText="级别" ReadOnly="True" />
                        <asp:BoundField DataField="ptype" HeaderText="类型" ReadOnly="True" />
                        <asp:BoundField DataField="pstatus" HeaderText="状态" ReadOnly="True" />
                        <asp:BoundField HeaderText="状态" ReadOnly="True" />
                        <asp:BoundField DataField="opendate" HeaderText="开始时间" >
                            <ItemStyle Width="160px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="closedate" HeaderText="关闭时间" >
                            <ItemStyle Width="160px" />
                        </asp:BoundField>
                        <asp:CommandField ButtonType="Image" CancelImageUrl="~/js/themes/icons/cancel.png"
                            EditImageUrl="~/js/themes/icons/pencil.png" ShowEditButton="True" UpdateImageUrl="~/js/themes/icons/filesave.png" />
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:ImageButton ID="imgbtndel" runat="server" ImageUrl="~/js/themes/icons/cancel.png"
                                    ToolTip="删除此计划!" OnClientClick='return confirm("删除计划后不可恢复，您确定要删除此计划？");' CommandArgument="<%# Container.DataItemIndex %>" CommandName="deleteplan" />
                            </ItemTemplate>
                            <ItemStyle Width="30px" />
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle CssClass="pgr" />
                    <AlternatingRowStyle CssClass="alt" />
                    <EmptyDataRowStyle BorderColor="Red" BorderStyle="None" BorderWidth="2px" />
                </asp:GridView>
                </div> 
     </ContentTemplate>
        </asp:UpdatePanel>
        </div> 
    </form>
</body>
</html>
